package com.example.smartfridge;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.widget.RadioButton;

public class MainActivity extends Activity {
	private final int LAUNCH_TIME = 3000;
	private Handler mHandler = new Handler();
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		mHandler.postDelayed(new Runnable(){
			public void run(){
				Intent navigation = new Intent();
				navigation.setClass(MainActivity.this, Fridge.class);
				MainActivity.this.startActivity(navigation);
				MainActivity.this.finish();
				
				
			}
		},LAUNCH_TIME);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
